package com.pan.admin.module.loanProduct.entity.po;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.pan.admin.common.core.domain.BaseEntity;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 机构充值记录
 *
 * @author caoxin
 */
@Data
public class LoanProductRechargePO extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private Long id;

    /**
     * 机构主键id
     */
    private Long loanProductId;

    /**
     * 机构名称
     */
    private String loanProductName;

    /**
     * 机构计划主键id
     */
    private Long loanProductPlanId;

    /**
     * 机构计划名称
     */
    private String loanProductPlanName;

    /**
     * 用户id
     */
    private Long loanUserId;

    /**
     * 渠道id
     */
    private Long loanChannelId;

    /**
     * 客户端id
     */
    private String apiClientId;

    /**
     * 渠道名称
     */
    private String loanChannelName;

    /**
     * 手机号Md5
     */
    private String phoneMd5;

    /**
     * 充值金额
     */
    private BigDecimal amount;

    /**
     * 当前余额
     */
    private BigDecimal currentBalance;

    /**
     * 充值过后账户余额
     */
    private BigDecimal accountBalance;

    /**
     * 操作类型(0扣款， 1充值)
     */
    private Integer type;

    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String starTime;

    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String endTime;

    /**
     * 备注
     */
    private String remark;
}
